/*
 * Created by SharpDevelop.
 * User: Adam
 * Date: 12/20/2008
 * Time: 2:17 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Runtime.Serialization;
using System.Security.Permissions;

namespace Yaml
{
	[Serializable]
	public class YamlException:Exception {
		private string _message;
		
		public YamlException() {
		}
		public YamlException(string message):base() {
			this._message = message;
		}
		
		public override string Message {
			get {
				return this._message;
			}
		}
		
		    [SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)]
        public override void GetObjectData( SerializationInfo info, 
            StreamingContext context ) 
        {

            base.GetObjectData( info, context );
        }
	}
	
	[Serializable]
	public class YamlEndOfStreamException:YamlException
	{
		public YamlEndOfStreamException() : base( "Failed to parse end of YamlStream.") {

		}
		
	}

}
